import 'package:flutter/material.dart';

class UserRegisterEntity {
  String account;
  String imgVerifyCode;
  String password;
  String payPassword;
  String wechatOpenId;
  String wechatUnionId;
  String sinaWeiboOpenId;
  String sinaWeiboUnionId;
  String qqOpenId;
  String qqUnionId;
  String hardMsgId;

  BuildContext context;
  UserRegisterEntity(
      {this.account,
      this.imgVerifyCode,
      this.password,
      this.payPassword,
      this.wechatOpenId,
      this.wechatUnionId,
      this.sinaWeiboOpenId,
      this.sinaWeiboUnionId,
      this.qqOpenId,
      this.hardMsgId,
      this.qqUnionId});

  UserRegisterEntity.fromJson(Map<String, dynamic> json) {
    account = json['account'];
    imgVerifyCode = json['imgVerifyCode'];
    password = json['password'];
    payPassword = json['payPassword'];
    wechatOpenId = json['wechatOpenId'];
    wechatUnionId = json['wechatUnionId'];
    sinaWeiboOpenId = json['sinaWeiboOpenId'];
    sinaWeiboUnionId = json['sinaWeiboUnionId'];
    qqOpenId = json['qqOpenId'];
    qqUnionId = json['qqUnionId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['account'] = this.account;
    data['imgVerifyCode'] = this.imgVerifyCode;
    data['password'] = this.password;
    data['payPassword'] = this.payPassword;
    data['wechatOpenId'] = this.wechatOpenId;
    data['wechatUnionId'] = this.wechatUnionId;
    data['sinaWeiboOpenId'] = this.sinaWeiboOpenId;
    data['sinaWeiboUnionId'] = this.sinaWeiboUnionId;
    data['qqOpenId'] = this.qqOpenId;
    data['qqUnionId'] = this.qqUnionId;
    return data;
  }
}
